x86: avoid EPT scanning errors when splitting superpages during live migration
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 17 Apr 2009 12:07:06 +0000 (13:07 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 17 Apr 2009 12:07:06 +0000 (13:07 +0100)
commitcebd2137ea64a8ba9cc2edc57df556224917e9bd
tree3cc19abf0faab15d7237c1df224a098cb99b3cbe
parent9d09f146c9bce443acd32852ccb1722b0d2cbc4b
x86: avoid EPT scanning errors when splitting superpages during live migration

Since Xen did not lock the p2m table for p2m table reading, when
splitting the large page during live migration, we should make sure
the path of EPT entries be modified are always there while other CPUs
may access the super entries at the same time.

Signed-off-by: Xin, Xiaohui <xiaohui.xin@intel.com>
xen/arch/x86/mm/hap/p2m-ept.c